package com.xxonehjh.demo.spring.core.services.impl;

import com.xxonehjh.demo.spring.core.services.PetStore;

/**
 * @author huangjh
 * @date 2021-6-28 15:24:39
 */
public class PetStoreImpl implements PetStore, AutoCloseable {

	public int getPrice(String name) {
		return 5;
	}

	@Override
	public void close() throws Exception {
		// Spring will call before container shutdown
		System.out.println("close ... " + getClass().getName());
	}

}
